/*
 * Copyright (c) 2018. Aberic - All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 *
 * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.ideal.blockchain.dao.model;



import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.apache.ibatis.type.JdbcType;
import tk.mybatis.mapper.annotation.ColumnType;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * 作者：Aberic on 2018/6/27 21:12
 * 邮箱：abericyang@gmail.com
 */
@Setter
@Getter
@ToString
@Table(name = "fns_user")
public class User {
    @ColumnType(column = "id",jdbcType = JdbcType.INTEGER)
    private int id; // required
    @ColumnType(column = "username",jdbcType = JdbcType.VARCHAR)
    private String username; // required
    @ColumnType(column = "password",jdbcType = JdbcType.VARCHAR)
    private String password; // required

    @ColumnType(column = "role_id",jdbcType = JdbcType.INTEGER)
    private int roleId; // 1-超级管理员、2-管理员、8-普通会员

    @ColumnType(column = "date",jdbcType = JdbcType.DATE)
    private String date;

    @ColumnType(column = "role_name",jdbcType = JdbcType.VARCHAR)
    private String roleName;

}
